package org.xxpay.pay.service;

import org.apache.commons.lang3.StringUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.xxpay.core.entity.SettRecord;

/**
 * @author: dingzhiwei
 * @date: 17/9/9
 * @description:
 */
@Service
public class SettOrderService {

    @Autowired
    private CommonService commonService;

    public SettRecord query(Long infoId, String mchOrderNo) {
        SettRecord settRecord = new SettRecord();
        if(StringUtils.isNotBlank(mchOrderNo)) {
            settRecord = commonService.settRecordService.selectByInfoIdAndMchOrderNo(infoId, mchOrderNo);
        }
        if(settRecord == null) return null;

        return settRecord;
    }

}
